package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminLaborUser extends Model<AdminLaborUser> {

    public static final String ID = "id";
    public static final String USER_NAME = "user_name";
    public static final String USER_PHONE = "user_phone";
    public static final String USER_PWD = "user_pwd";
    public static final String LABOR_COMPANY_ID = "labor_company_id";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String ID_CARD = "id_card";
    public static final String ID_CARD_FRONT = "id_card_front";
    public static final String ID_CARD_BACK = "id_card_back";
    public static final String ADMIN_USER_ID = "admin_user_id";
    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 手机号码
     */
    private String userPhone;
    /**
     * 用户密码
     */
    private String userPwd;
    /**
     * 劳务公司
     */
    private Long laborCompanyId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableLogic
    private Boolean delFlag;
    /**
     * 身份证号
     */
    private String idCard;
    /**
     * 身份证正面照
     */
    private String idCardFront;
    /**
     * 身份证反面照
     */
    private String idCardBack;
    private Long adminUserId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
